<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<?php
require __DIR__.'/data/user.php';
if(isset($_SESSION['user'])){
    echo 'uck@';die;
}
?>
<form action="dologin.php" method="post">
    用户名:<input type="text" name="username">
    密码:<input type="text" name="password">
    <input type="submit" value="提交">
</form>
</body>
</html>